<template>
	<!--登录 -->
	<view class="page-content">
		<!-- 标题栏和状态栏占位符 -->
		<view class="titleNview-placing"></view>
		<w-tit leftIcon="closeempty" @clickLeft="back" color="#999" iconfont="30"></w-tit>
		<view class="page-body">
			<image class="company-no" src="/static/companyNo/company-no.png"></image>
			<view class="txt">您暂无所属企业，请联系所属企业管理员。</view>
			<view class="btn-row">
				<button type="primary" class="" @tap="tobrand">创建新品牌 <text class="icons icon-gengduo"></text></button>
			</view>
		</view>
	</view>
</template>

<script>
	import {
		mapGetters,
		mapActions
	} from 'vuex'
	import {
		sendSmss,
		logins,
		registers, 
	} from '@/common/api.js';
	import  store  from '@/store'
	import wTit from '@/components/w-tit/w-tit-back.vue';
	export default {
		components: {
			wTit
		},
		data() {
			return {
				params: {
					mobile: '',
					pass: ''
				},
				formdata:{
					mobile: '',
					sms_code:'',
					pass: '',
					type:'3344',
					sms_type:'3344'
				},
				btnText:'获取验证码',
				btnDis:false,
				id:'', //传参
			}
		},
		computed: {
		},
		onLoad(option) {
			console.log(222)
			if(option.id){
				this.id = option.id
			}
		},
		methods: {
			...mapActions('user',['setToken']),
			//跳转忘记密码
			tobrand() {
				uni.navigateTo({
					url: `/pages/brandCreation/brand?id=${this.id}&type=add&pageType=2`
				})
			},
			back() {
				uni.navigateBack({
					delta: 1
				})
			},
		}
	}
</script>

<style lang="scss">
	.titleNview-placing {
		height: var(--status-bar-height);
		box-sizing: content-box;
		background: $uni-bg-color;
		display: block;
		position: sticky;
		top: 0rpx;
		z-index: 9999;
		overflow: hidden
	}
	.det-con-more {
		display: flex;
		justify-content: center;
		align-items: center;
		margin-bottom: 10rpx;
		color: #bbb;
		font-size: 24rpx;
	}
	.icon-tb {
		width: 32rpx;
		height: 32rpx;
		margin-right: 20rpx;
	}
	.page-content {
		display: flex;
		flex-direction: column;
		background: $uni-bg-color;
		width: 100vw;
		height: 100vh;
		.page-body{
			height: 100%;
			display: flex;
			flex-direction: column;
			justify-content: center;
			align-items: center;
			.company-no{
				width: 364rpx;
				height: 316rpx;
				margin-bottom: 40rpx;
			}
			.txt{
				font-size: 28rpx;
				line-height: 40rpx;
				color: $font-color-9;
				margin-bottom: 72rpx;
			}
			.btn-row {
				width: 100%;
				padding: 0 30rpx;
						
				button {
					line-height: 100rpx;
					background: $uni-but-bg-color;
					font-size: 36rpx;
					color: $font-color-w;
					height: 100rpx;
					box-shadow: 0rpx 0rpx 10rpx rgba(0, 0, 0, 0.19);
					border-radius: 10rpx;
				}
				.icons{
					margin-left: 30rpx;
					font-weight: 600;
					font-size: 36rpx;
				}
			}
		}
	}
</style>
